<%= title @project.name %>

<%= simple_format h(@project.description) %>

<% if @project.milestones.size == 0 and @project.activities.size == 0 %>

	<div class="alert green center rounded-8">
		<h1><%= link_to t(:new, :scope => :milestone), new_project_milestone_path(@project) %></h1>
		<p><%= t :project_has_no_milestones, :scope => :milestone %></p>
	</div>
	
	<div class="alert gray center rounded-8">
		<h1><%= link_to t(:add, :scope => :user), new_project_milestone_path(@project) %></h1>
		<p><%= t :you_can_add_more_members, :scope => :user %></p>
	</div>
	
<% else %>
	<hr />
	<%= render "milestones/table", :label => t(:late, :scope => :milestone),
								   :milestones => @late_milestones %>
								   
	<%= render "project_updates", :logs => @logs %>
<% end %>

<% content_for :sidebar do %>
	<%= render "members", :project => @project %>
<% end %>

<% if current_user.admin? @project %>
	<% content_for :subtabs do %>
		<div id="sub-tabs">
			<ul>
				<li><%= link_to t(:edit, :scope => :project), edit_project_url(@project) %></li>
				<li><%= link_to t(:add, :scope => :user), project_permissions_url(@project) %></li>
			</ul>
		</div>
	<% end %>
<% end %>